package com.jbm.Community.Frame;

import com.jbm.Community.R;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.*;

public class CreateOrderActivity extends Activity {

	@SuppressWarnings("unused")
	private TextView mtvTypeName = null;
	@SuppressWarnings("unused")
	private EditText metContent = null;
	@SuppressWarnings("unused")
	private EditText metServiceTime = null;
	@SuppressWarnings("unused")
	private TextView mtvSelectAddress = null;
	@SuppressWarnings("unused")
	private TextView mtvContacts = null;
	@SuppressWarnings("unused")
	private TextView mtvPhone = null;
	@SuppressWarnings("unused")
	private TextView mtvAddress = null;
	@SuppressWarnings("unused")
	private Button mbtOK = null;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.activity_create_order);
		
		this.mtvTypeName = (TextView)this.findViewById(R.id.create_order_type);
		this.metContent = (EditText)this.findViewById(R.id.order_require_edit);
		this.metServiceTime = (EditText)this.findViewById(R.id.order_require_time_edit);
		this.mtvSelectAddress = (TextView)this.findViewById(R.id.order_edit_address_button);
		this.mtvContacts = (TextView)this.findViewById(R.id.address_contacts);
		this.mtvPhone = (TextView)this.findViewById(R.id.address_phone); 
		this.mtvAddress = (TextView)this.findViewById(R.id.address_address);
		this.mbtOK = (Button)this.findViewById(R.id.create_order_ok_button);
		
		this.mtvSelectAddress.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {
				SelectAddress();

			}});
		
		this.mbtOK.setOnClickListener(new OnClickListener(){

			@Override
			public void onClick(View v) {

			}});
	}

	protected void SelectAddress() {
    	Intent intent = new Intent(this,SelectAddressActivity.class);
    	this.startActivity(intent);
		
	}
}
